@charset "UTF-8";

/* ───────────────────────
   アドベントカレンダー設定
─────────────────────── */

.hidden {
  display: none;
}

.pending {
  max-width: 1160px;
  text-align: right;
  font-size: 20px;
  color: #aaa;
  font-weight: 300;
}

@media (max-width: 768px) {
  .pending {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .pending {
    font-size: 18px;
  }
}

/* ───────────────────────
   全体設定
─────────────────────── */

/* ヘッダーとタイトルのあいだの余白 */
main {
  margin-top: 200px;
}

@media (max-width: 768px) {
  main {
    margin-top: 194px;
  }
}

@media (max-width: 480px) {
  main {
    margin-top: 154px;
  }
}

/* 見出しフォントサイズ */
h2 {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.05rem;
  margin-bottom: 8px;
}

h3 {
  font-weight: 300;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.05rem;
}

h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

h5 {
  font-weight: 500;
  text-align: right;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.28rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.08rem;
  }
}


/* ───── br-for-mobile
（小タブレット・モバイルだけ改行）───── */
.br-for-mobile {
  display: none;
}

@media (max-width: 768px) {
  .br-for-mobile {
    display: inline;
  }
}

.memorial_view {
  max-width: 1160px;
  margin: 100px auto 0 auto;
}

/* ──────────────────────────────
   全要素ボックスサイズ border-box
────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ──────────────────────────────
  キャプション
────────────────────────────── */

.caption-section {
  max-width: 1160px;
  text-align: center;
  margin: 120px auto 120px auto;
}

@media (max-width: 768px) {
  .caption-section {
    margin: 100px auto 100px auto;
  }
}

@media (max-width: 480px) {
  .caption-section {
    margin: 80px auto 80px auto;
  }
}

/* ──────────────────────────────
  読む震災遺構ページ
────────────────────────────── */

.content-intent {
  max-width: 1100px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.item-img1 {
  display: block;
  width: 100%;
  height: auto;
}

.item-img2 {
  display: block;
  width: 100%;
  height: auto;
}

.section-title {
  text-align: left;
  margin-top: 54px;
  padding: 0 20px 0 20px;
}

.comment-center {
  display: flex;
  justify-content: center;
}

.comment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  padding: 0.75em 2.5em;
  background: #eee;
  border-radius: 9999px;
  margin-top: 70px;
  line-height: 1.4;
}

.comment-heading {
  font-weight: 500;
}

.comment:hover,
.comment:focus {
  background: #707f89;
  color: #fff;
  opacity: 0.8;
  transition: background 0.2s, opacity 0.2s;
}

/* モーダル部分のみ追記 */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 34, 0.45);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 768px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 2em 1.5em 1.5em 1.5em;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 1em;
  top: 1em;
  font-size: 1.7em;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
}

/* 記事リンクボタン */
.external-article-btn {
  display: block;
  width: 100%;
  margin: 90px auto 0 auto;
  padding: 9px 0;
  background: #fff;
  color: #333;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 0.5px solid #CBCDD1;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  letter-spacing: 0.05em;
  outline: none;
  border-radius: 2px;
}

.external-article-btn:hover,
.external-article-btn:focus {
  background: #f7f8fa;
  color: #333;
  border-color: #707f89;
  opacity: 0.95;
}


@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comment {
    margin-top: 70px;
  }

  .comment-center {
    justify-content: center;
  }

  .external-article-btn {
    width: 100%;
    margin: 90px auto 0 auto;

  }

  .item-img2 {
    margin-top: 90px;
  }

}


@media (max-width: 480px) {

  .comment {
    margin-top: 60px;
  }

  .external-article-btn {
    width: 100%;
    margin: 75px auto 0 auto;

  }

  .item-img2 {
    margin-top: 80px;
  }

}




/* ──────────────────────────────
  外部リンク装飾（↗）
────────────────────────────── */
a.ext-link {
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, opacity 0.2s;
}

a.ext-link:hover {
  border-bottom-color: #707f89;
  opacity: 0.7;
}

a.ext-link::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 4px;
  vertical-align: baseline;
}